%{
#include <stdio.h>
int	line_no = 1;
%}

delim	[\t]
ws	{delim}+
letter	[a-zA-Z]
pfix	[a-zA-Z0-9]
digit	{0-9}+
identifier	{pfix}+

%%

{ws}	{}
main	{printf("main");}
doc	{printf("doc");}
label	{printf("label");}
pic	{printf("pic");}
obj	{printf("obj");}
foreach	{printf("foreach");}
setsize	{printf("setsize");}
setfont	{printf("setfont");}
setfontsize	{printf("setfontsize");}
path	{printf("path");}
dist	{printf("dist");}
position	{printf("position");}
direction	{printf("direction");}
angle	{printf("angle");}
distance	{printf("distance");}
to	{printf("to");}
inner	{printf("inner");}
left	{printf("left");}
middle	{printf("middle");}
right	{printf("right");}
top	{printf("top");}
down	{printf("down");}
from	{printf("from");}
content	{printf("ocntent");}
return	{printf("return");}
default	{printf("default");}
font	{printf("font");}
size	{printf("size");}
type	{printf("type");}
container	{printf("container");}
poly	{printf("poly");}
letout	{printf("letout");}
z_axis	{printf("z-zxis");}

"@"	{printf("@");}
"&"	{printf("&");}
"w/"	{printf("w/");}
"#"	{printf("#");}
"_"	{printf("_");}
"="	{printf("=");}
"."	{printf(".");}
">="	{printf(">=");}
">"	{printf(">");}
"["	{printf("[");}
"<="	{printf("<=");}
"<"	{printf("<");}
"("	{printf("(");}
"-"	{printf("-");}
"<>"	{printf("<>");}
"+"	{printf("+");}
"]"	{printf("]");}
")"	{printf(")");}
";"	{printf(";");}
"/"	{printf("/");}
"*"	{printf("*");}

\n	line_no++;
identifier	{printf("identifier");}

%%

int main(int argc, char *argv[])
{
	yyin = fopen(argv[1],"r");
	yylex();
	printf("ya!");
}

int yywrap()
{
	return 1;
}
